'use strict'
Object.defineProperty(exports, '__esModule', { value: true })
const classnames = (baseClass, names) => {
  const normalizedNames = []
  const specialKeys = ['type']
  names.forEach((name) => {
    if (Object.prototype.toString.call(name) === '[object Object]') {
      const key = Object.keys(name)[0]
      const value = name[key]
      if (specialKeys.indexOf(key) !== -1) {
        normalizedNames.push(`${baseClass}__${value}`)
      } else if (value) {
        normalizedNames.push(`${baseClass}__${key}`)
      }
    }
  })
  return [baseClass, ...normalizedNames].join(' ')
}
exports.default = classnames
